package com.arrogames.rgblabyrinth.game.ui {
	import com.arrogames.rgblabyrinth.AssetManager;
	import com.arrogames.rgblabyrinth.game.graphics.Rectangle;
	
	import starling.display.Image;
	import starling.display.Quad;
	import starling.display.Sprite;
	import starling.extensions.pixelmask.PixelMaskDisplayObject;
	import starling.utils.Color;
	
	public class GamePanel extends Sprite {
		
		private const WIDTH:Number = 800;
		private const HEIGHT:Number = 600;
		
		private var _gameContent:Sprite;
		private var _radialMask:Image;
		
		public function GamePanel() {
			super();
			
			addChild(new Quad(WIDTH, HEIGHT, Color.BLACK));
			_gameContent = createGameContent();
			/*_radialMask = new Image(AssetManager.instance.getTexture("radial"));
			_radialMask.width = WIDTH;
			_radialMask.height = HEIGHT;*/
			
			/*var maskedDisplayObject:PixelMaskDisplayObject = new PixelMaskDisplayObject();
			maskedDisplayObject.addChild(gameContent);
			maskedDisplayObject.mask = radialMask;*/
			
			addChild(_gameContent);
			
		}
		
		private function createGameContent():Sprite {
			var sprite:Sprite = new Sprite();
			sprite.addChild(new Rectangle(0x000000, WIDTH, HEIGHT));
			return sprite;
		}

		public function get gameContent():Sprite { return _gameContent; }
		public function get radialMask():Image { return _radialMask; }


	}
}